package com.martin.study;

import org.springframework.beans.SimpleTypeConverter;

public class SpringTypeConverterDemo {
	public static void main(String[] args) {
		SimpleTypeConverter typeConverter = new SimpleTypeConverter();
		typeConverter.registerCustomEditor(JdkPropertyEditorDemo.User.class, new JdkPropertyEditorDemo());
//typeConverter.setConversionService(conversionService);
		JdkPropertyEditorDemo.User user = typeConverter.convertIfNecessary("kong#male", JdkPropertyEditorDemo.User.class);
		System.out.println(user);
	}
}
